<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    let a = '5,6'
    let str = Array.of(a)
    console.log(str);


    show(1, 2, 3, 5)
    function show() {
      for (item in arguments) {
        console.log(item);
      }
    }

    //es6 新增Set对象
    let arr = [1, 1, 1, 1, 23, 34, 23, 45, 56];
    let n = new Set(arr);//返回唯一值的set数据,并不是数组
    console.log(Array.from(n));

  </script>
</body>

</html>